<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>在线考试系统</title>
    <link type="text/css" rel="styleSheet"  th:href="@{../static/css/admin_main.css}" />
    <script th:src="@{../static/js/jquery.js}"></script>
    <script th:src="@{../static/js/admin-ce.js}"></script>
    <script>
        $(function () {
            $(".logTeacher").click(function () {
                $(".contentIframe").attr("src","/teacher_log_msg");

            });
            $(".logStudent").click(function () {
                $(".contentIframe").attr("src","/student_log_msg");

            });
            $(".examCourses").click(function () {
                $(".contentIframe").attr("src","/exam_course_msg");

            });
            $(".upTeacher").click(function () {
                $(".contentIframe").attr("src","/test");

            });
            $(".studentGrade").click(function () {
                $(".contentIframe").attr("src","/studentsGrades");

            });
            $(".MajorCourse").click(function () {
                $(".contentIframe").attr("src","/majorsCourses");

            });
            $(".courseManager").click(function () {
                $(".contentIframe").attr("src","/courseManager");

            });
            $(".examination").click(function () {
                $(".contentIframe").attr("src","/examination");

            });
        })
    </script>
    <!--配置图标-->
    <link rel="icon" th:href="@{../static/img/favicon.ico}" type="image/x-icon"/>
</head>
<body>
    <div class="main">
        <div class="title">
            <div class="user">
                <img th:src="@{../static/img/username.png}" width="28px" height="28px">
            </div>
            <div class="username">
                <p th:text="${admin_name}" ></p>
            </div>
            <div class="out">
               <a th:href="@{/index.html}">注销</a>
            </div>
        </div>
        <div class="content">
            <div class="content-left">
                <div class="left-title">
                    <p>后台管理</p>
                </div>
                <!--分割线-->
                <div class="seg">
                </div>
                <!--菜单导航栏-->
                <div class="nav">
                    <!--每一个菜单-->
                    <div class="nav-menu">
                        <!--主标题-->
                        <div class="nav-title">教师管理</div>
                        <!--子标题-->
                        <div class="nav-content">
                            <p class="logTeacher">登录信息</p>
                        </div>
                    </div>
                    <div class="nav-menu">
                        <!--主标题-->
                        <div class="nav-title">学生管理</div>
                        <!--子标题-->
                        <div class="nav-content">
                            <p class="logStudent">登录信息</p>
                            <p class="studentGrade">成绩信息</p>
                        </div>
                    </div>
                    <div class="nav-menu">
                        <!--主标题-->
                        <div class="nav-title">考试管理</div>
                        <!--子标题-->
                        <div class="nav-content">
                            <p class="examCourses">考试信息</p>
                            <p class="MajorCourse">考试科目</p>
                        </div>
                    </div>
                    <div class="nav-menu">
                        <!--主标题-->
                        <div class="nav-title">试卷管理</div>
                        <!--子标题-->
                        <div class="nav-content">
                            <p class="courseManager">试题管理</p>
                            <p class="examination">题库管理</p>
                        </div>
                    </div>
                    <div class="nav-menu">
                        <!--主标题-->
                        <div class="nav-title">个人信息</div>
                        <!--子标题-->
                        <div class="nav-content">
                            <a th:href="@{/admin/update_password}">修改密码</a>
                        </div>
                    </div>
                </div>
                <!--分割线-->
                <div class="seg">
                </div>
            </div>
            <div class="content-right">
                <iframe class="contentIframe" th:src="@{/admin}" scrolling="no" name="iframe" frameborder="0"></iframe>
            </div>
        </div>
    </div>

</body>
</html>